/*
 * @Author: wangjq4214
 * @Date: 2022-05-02 19:18:24
 * @LastEditTime: 2022-05-08 17:25:44
 * @LastEditors: wangjq4214
 */
export const COMPUTE_ADD_URL = '/compute/add';
export const COMPUTE_DEL_URL = '/compute/del';
export const COMPUTE_LIST_URL = '/compute';
export const COMPUTE_SCALE_URL = '/compute/scale';

export interface ComputeAddReq {
  ComputeType: 1 | 2;
  ComputeScale: 1 | 2 | 3;
  mainNodeMemory: number;
  slaveNodeMemory: number;
}

export interface ComputeListItem {
  id: string;
  mainNode: string;
  size: 1 | 2 | 3;
  mainMemory: number;
  slaveMemory: number;
  type: 1 | 2;
  time: string;
}

export type ComputeList = { total: number; item: ComputeListItem[] };
